﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ProveedorPagosREST.Dominio;
using System.ServiceModel.Web;

namespace ProveedorPagosREST
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ITarjeta" in both code and config file together.
    [ServiceContract]
    public interface ITarjetas
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Tarjetas", ResponseFormat = WebMessageFormat.Json)]
        Tarjeta CrearTarjeta(Tarjeta tarjetaACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Tarjetas/{nro}", ResponseFormat = WebMessageFormat.Json)]
        Tarjeta ObtenerTarjeta(string nro);

        [OperationContract]
        Tarjeta ModificarTarjeta(Tarjeta tarjetaModificar);

        [OperationContract]
        Tarjeta EliminarTarjeta(string nro);

        [OperationContract]
        List<Tarjeta> ListarTarjetas();


        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Pagos", ResponseFormat = WebMessageFormat.Json)]
        PagoReserva CrearPago(PagoReserva PagoACrear);
    }
}
